import { ElMessage } from 'element-plus'
//封装消息框
//成功的消息框
export let $msg_s = (message, duration = 2000) => {
  ElMessage({
    showClose: true,
    message,
    duration,
    type: 'success',
  })
}
//警告
export let $msg_w = (message, duration = 2000) => {
  ElMessage({
    showClose: true,
    message,
    duration,
    type: 'warning',
  })
}
export let $msg_e = (message, duration = 2000) => {
  ElMessage({
    showClose: true,
    message,
    duration,
    type: 'error',
  })
}
